<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>统一授权平台管理系统 V1.0</title>
    <#include "/pages/include/head.ftl" />
	<#import "/pages/import/images.ftl" as img />
</head>

<body>
<div class="page-top-bar">
<ul class="path">权限管理<span>&gt;</span>授权管理</ul>
</div>
<div class="function-bar">
<ul class="form-function">
<!--<li><a href="javascript:void(0)"><img src="../../images/ico16/ico-introduction.gif" alt="导入" title="导入" /><span></span>导入账户角色关系</a></li>
     <li><a href="javascript:void(0)"><img src="../../images/ico16/ico-derivation.gif" alt="导出" title="导出" /><span></span>导出账户角色关系</a></li>-->
</ul>
</div>

<div class="list-container">
<@rw.gridForm id="searchform" grid="accountGrid">
<div class="list-search">
<ul>
<li>帐号名称：<input id="criteria.username" name="criteria.username" type="text" class="input-common input-word-10" /></li>
<li class="search-btn-area">
      <div class="btn-order">
        <ul>
          <li class="left-normal" id="btn1_11"></li>
          <li class="middle-normal" id="submit"><img src="${contextPath}/images/ico16/ico-search.gif" alt="查询" />查 询</li>
          <li class="right-normal" id="btn1_13"></li>
       </ul>
      </div>
	</li>
</ul>
</div>
</@rw.gridForm>

<div class="toolbar">
<ul>
</ul>
</div>

<@s.url id="showurl" action="accountGridShow" namespace="/widgets" />
<@rw.grid 
	id="accountGrid" 
	caption="账户权限分配" 
	pager="true"
	gridModel="gridModel"
	rowList="10,15,20"
	rowNum="10"
	rownumbers="true"
	multiselect="true"
	width="1000"
	onGridCompleteTopics="grid-complete">
	<@sj.gridColumn name="username" 		index="username"			title="账户登录名" 		sortable="false"/>
	<@sj.gridColumn name="id"  index="id"	title="操作"		formatter="distributeUrl" 	sortable="false"/>
</@rw.grid>

<div id="grid" class="border-lbr"></div>
</div>
</body>

<script>

function popDistributeRole(id){
 if(id=='' || id=='undefined'){
     alert("error");
     return;
  }
  top.windowOpen('${contextPath}/account/paramAccount-preAddRoles.action?id='+id, 'pop01', '统一授权平台管理系统', 440,770);
}

function distributeUrl(cellvalue, options, rowdata){
    var id = cellvalue;
    return "<a href=javascript:void(0); onclick=popDistributeRole('"+id+"')>角色分配</a>";
}
</script>
</html>
